x86,arm: Change arch_livepatch_quiesce() declaration.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 22 Aug 2016 18:41:41 +0000 (14:41 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 9 Sep 2016 15:48:21 +0000 (11:48 -0400)
commit8a085e9d947609b4baf3ed57007a3aab481f0155
tree1ed6bc66c318c17f87683439f5565d20041be58d
parentff25f722f674b2f6984a2a67189bfb7b89c5d953
x86,arm: Change arch_livepatch_quiesce() declaration.

On ARM we need an alternative VA region to poke in the
hypervisor .text data. And since this is setup during runtime
we may fail (it uses vmap so most likely error is ENOMEM).

As such this error needs to be bubbled up and also abort
the livepatching if it occurs.

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/arm/livepatch.c
xen/arch/x86/livepatch.c
xen/common/livepatch.c
xen/include/xen/livepatch.h